﻿@{
    ViewBag.Title = "ViewPage1";
    Layout = "~/Views/Shared/BaseView.cshtml";
}
<script type="text/javascript">
    function showdiv3() {
        if (document.getElementById("table3").style.display == "block") {
            document.getElementById("table3").style.display = "none";
        } else {
            document.getElementById("table3").style.display = "block";
        }

    }
</script>
@{
    Common.Web.Cookie cookie = new Common.Web.Cookie();
    int visiterId = Convert.ToInt32(cookie.GetCookie("LoginUserId"));
    BenefitHelper.DB.DBManager db = new BenefitHelper.DB.DBManager();
    if (BenefitHelper.Sys.VisitPrower.HasAdminPrower(visiterId, db))
    { 
    <div id="buttons">
        <span>
            <p>
                <a href="/Init" target="_blank" title="后台管理">后台管理</a>
            </p>
        </span>
    </div>
    }
    db.Dispose();
}
<dl id="xiangmu">
    <dt><span id="title2">@ViewBag.company.CompanyName</span></dt>
    <dd>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" id="panzhongfenxi">
            <tr>
                <td class="selected" style="border-left: 1px solid #ecc7b5;">
                    <img src="/Content/images/icon_01.gif" />小组盈利
                </td>
                <td>
                    <a href="/CompanySort/Index/1/@ViewBag.queryyear@ViewBag.querymonth">
                        <img src="/Content/images/icon_09.gif" />公司排名</a>
                </td>
                <td>
                    <a href="/CompanyHistory/Index/1/@ViewBag.queryyear@ViewBag.querymonth">
                        <img src="/Content/images/icon_10.gif" />历史数据</a>
                </td>
                <td>
                    <a href="/CompanyReport/Index/1/@ViewBag.queryyear@ViewBag.querymonth">
                        <img src="/Content/images/icon_05.gif" />报表</a>
                </td>
            </tr>
        </table>
    </dd>
</dl>
<div id="bigDataBox">
    <span style="width: 50%;">数据统计时间：
        <input type="text" id="key" class="Wdate" onclick="WdatePicker()" name="key"  value="@ViewBag.Hpdate"  /><span
            style="padding-left: 24px;"><span style="cursor: pointer;"><input type="button" value="查看"
                style="font-size: 9pt; width: 60px; height: 22px;" id="changedate" /></span></span></span>
    <div style="height: 5px; line-height: 5px;">
    </div>
    <div class="statisticsTime">
        <div style="width: 100%; height: 320px;" id="showflash">
        </div>
    </div>
    <div style="height: 5px; line-height: 5px;">
    </div>
    <div style="width: 60%; background-repeat: no-repeat; float: left; text-align: left;">
        <img src="/content/images/shouyigaikuang.png" />
    </div>
    @*    <div id="DateSelectBar" class="date-select-bar" style="float: right;">
        <a href="#00" class='cur' onclick="changediv(1)">按账户</a> <a href="#-1" onclick="changediv(2)">
            按多空</a>
    </div>*@
    <table cellspacing="0" cellpadding="0" class="list" style="width: 100%;" id="table1">
        <tr>
            <td class="title" style="text-align: center;">
                姓名
            </td>
            <td class="title" style="text-align: center;">
                风险次数
            </td>
            <td class="title" style="text-align: center;">
                资金利用率
            </td>
            <td class="title" style="text-align: center;">
                胜率
            </td>
            <td class="title" style="text-align: center;">
                涨幅
            </td>
            <td class="title" style="text-align: center;">
                平仓盈亏
            </td>
            <td class="title" style="text-align: center;">
                每笔盈利
            </td>
            <td class="title" style="text-align: center;">
                收益效率
            </td>
            <td class="title" style="text-align: center;">
                周累计
            </td>
        </tr>
        @{
            double sum1 = 0;
            double sum2 = 0;
            double sum3 = 0;
            double sum4 = 0;
            double sum5 = 0;
            double sum6 = 0;
            double sum7 = 0;
            double sum8 = 0;
            double sum9 = 0;
            double sum10 = 0;

            foreach (BenefitHelper.Data.Day.GroupDayChange sum in ViewBag.groupmonths)
            {
                sum1 += sum.RiskCount;
                sum2 += sum.Utilization;
                sum3 += sum.WinRate;
                sum4 += sum.RaiseRate;
                sum5 += sum.Profit;
                sum6 += sum.AvgBillBenefit;
                sum7 += sum.RiskCount;
                sum8 += sum.Yield;
                sum9 += sum.RiskCount;
                sum10 += sum.RiskCount;
            <tr>
                <td style="text-align: center; padding-left: 10px;">
                    @sum.Group.GroupName
                </td>
                <td style="text-align: right;">
                    @sum.RiskCount
                </td>
                <td style="text-align: right;">
                    @sum.Utilization
                </td>
                <td style="text-align: right;">
                    @sum.WinRate
                </td>
                <td style="text-align: right;">
                    @sum.RaiseRate
                </td>
                <td style="text-align: right;">
                    @string.Format("{0:N2}", sum.Profit)
                </td>
                <td style="text-align: right;">
                    @string.Format("{0:N2}", sum.AvgBillBenefit)
                </td>
                <td style="text-align: right;">
                    @sum.Yield
                </td>
                <td style="text-align: right;" class=" leftyes">
                    @foreach (BenefitHelper.Data.Week.GroupWeekSum s in ViewBag.groupweeksum)
                    {
                        if (s.GroupId == sum.GroupId)
                        {
                        <span>@string.Format("{0:N2}", s.Profit)</span>
                         break;
                        }
                    }
                </td>
            </tr>
            }
        }
        <tr>
            <td style="text-align: center;" class="bottomyes">
                总计
            </td>
            <td style="text-align: right;" class="bottomyes">
                @sum1
            </td>
            <td style="text-align: right;" class="bottomyes">
                @sum2
            </td>
            <td style="text-align: right;" class="bottomyes">
                @sum3
            </td>
            <td style="text-align: right;" class="bottomyes">
                @sum4
            </td>
            <td style="text-align: right;" class="bottomyes">
                @string.Format("{0:N2}", sum5)
            </td>
            <td style="text-align: right;" class="bottomyes">
                @string.Format("{0:N2}", sum6)
            </td>
            <td style="text-align: right;" class="bottomyes">
                @sum8
            </td>
            <td style="text-align: right;" class="bottomyes leftyes">
                @string.Format("{0:N2}", sum9)
            </td>
        </tr>
    </table>
    <div style="height: 5px; line-height: 5px;">
    </div>
    <div style="width: 60%; background-repeat: no-repeat; float: left; text-align: left;">
        <img src="/content/images/jiaoyigaikuang.png" />
    </div>
    <table style="width: 100%;" class="list" cellspacing="0" cellpadding="0">
        <tr>
            <td class="title" style="width: 10%;">
                参数
            </td>
            <td class="title" style="width: 40%;">
                值
            </td>
            <td class="title" style="width: 10%;">
                参数
            </td>
            <td class="title" style="width: 40%;">
                值
            </td>
        </tr>
        <tr class="detailsold" onclick="fee(1)">
            <td>
                <div style="float: left; text-align: left; width: 100%;">
                    平仓盈亏</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;">
                <div class="div1" style="float: right; text-align: right; width: 100%;">
                    @string.Format("{0:N2}",ViewBag.change.Profit)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table1">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}",ViewBag.change.Profit)</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.changefiveday.Profit)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.changemonth.Profit)</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.companyyearavg.Profit)</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatorweeksum.Profit)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatormonthsum.Profit)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatoryearsum.Profit)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td>
                <div style="float: left;">
                    手续费</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;" class="leftyes">
                <div style="float: right; text-align: right; width: 100%;" class="div1">
                    @string.Format("{0:N2}",ViewBag.change.Free)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table1">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}",ViewBag.change.Free)</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.changefiveday.Free)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.changemonth.Free)</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.companyyearavg.Free)</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatorweeksum.Free)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatormonthsum.Free)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatoryearsum.Free)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr class="detailsold" onclick="fee(2)">
            <td>
                <div style="float: left;">
                    净利润</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;">
                <div style="float: right; text-align: right; width: 100%;" class="div2">
                    @string.Format("{0:N2}",ViewBag.change.DayCount)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table2">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}",ViewBag.change.DayCount)</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.changefiveday.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.changemonth.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.companyyearavg.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatorweeksum.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatormonthsum.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatoryearsum.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td>
                <div style="float: left;">
                    交易笔数</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;" class="leftyes">
                <div style="float: right; text-align: right; width: 100%;" class="div2">
                    @ViewBag.change.BillCount</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table2">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @ViewBag.change.BillCount</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.changefiveday.BillCount</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.changemonth.BillCount</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.companyyearavg.BillCount</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.operatorweeksum.BillCount</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.operatormonthsum.BillCount</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.operatoryearsum.BillCount</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr class="detailsold" onclick="fee(3)">
            <td>
                <div style="float: left;">
                    平均持仓时长</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;">
                <div style="float: right; text-align: right; width: 100%;" class="div3">
                    @ViewBag.change.AvgPostionTime</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table3">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @ViewBag.change.AvgPostionTime</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.changefiveday.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.changemonth.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.companyyearavg.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.operatorweeksum.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.operatormonthsum.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.operatoryearsum.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td>
                <div style="float: left;">
                    最大回撤</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;" class="leftyes">
                <div style="float: right; text-align: right; width: 100%;" class="div3">
                    @string.Format("{0:N2}",ViewBag.change.MaxReturn)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table3">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}",ViewBag.change.MaxReturn)</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.changefiveday.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.changemonth.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.companyyearavg.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatorweeksum.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatormonthsum.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatoryearsum.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr class="detailsold" onclick="fee(4)">
            <td>
                <div style="float: left;">
                    总亏损</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;">
                <div style="float: right; text-align: right; width: 100%;" class="div4">
                    @string.Format("{0:N2}",ViewBag.change.SumLost)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table4">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}",ViewBag.change.SumLost)</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.changefiveday.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.changemonth.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.companyyearavg.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatorweeksum.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatormonthsum.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatoryearsum.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td>
                <div style="float: left;">
                    总盈利</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;" class="leftyes">
                <div style="float: right; text-align: right; width: 100%;" class="div4">
                    @string.Format("{0:N2}",ViewBag.change.SumWin)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table4">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}",ViewBag.change.SumWin)</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.changefiveday.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.changemonth.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.companyyearavg.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatorweeksum.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatormonthsum.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatoryearsum.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr class="detailsold" onclick="fee(5)">
            <td class="bottomyes leftyes">
                <div style="float: left;">
                    保证金占用</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;" class="bottomyes leftyes">
                <div style="float: right; text-align: right; width: 100%;" class="div5">
                    @string.Format("{0:N2}",ViewBag.change.UsedMargin)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table5">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}",ViewBag.change.UsedMargin)</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.changefiveday.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.changemonth.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.companyyearavg.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatorweeksum.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatormonthsum.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}",ViewBag.operatoryearsum.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td class="bottomyes leftyes">
                <div style="float: left;">
                    超出止损次数</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;" class="leftyes bottomyes">
                <div style="float: right; text-align: right; width: 100%;" class="div5">
                    @ViewBag.change.OverStopLoss</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table5">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @ViewBag.change.OverStopLoss</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.changefiveday.OverStopLoss</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.changemonth.OverStopLoss</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.companyyearavg.OverStopLoss</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.operatorweeksum.OverStopLoss</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.operatormonthsum.OverStopLoss</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.operatoryearsum.OverStopLoss</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>
    <div style="height: 5px; line-height: 5px;">
    </div>
    <div class="report-tip">
        <div class="report-tip-text">
            <div>
                <b>功能说明：</b></div>
            <div>
                亏损性成交：相对于当前（统计时间显示的时间）股票价格，在所有当日已经的成交中对于买入用户处于亏损的成交分布。<br />
                获利性成交：相对于当前（统计时间显示的时间）股票价格，在所有当日已经的成交中对于买入用户处于获利的成交分布。<br />
                成交均价：所有处于亏损或获利的不同成交单子中进行统计，平均成交价格。</div>
        </div>
        <div class="report-tip-close">
            &nbsp;</div>
        <div class="report-tip-text">
            <div>
                <b>使用帮助：</b></div>
            <div>
                本内容主要是将大小单成交与获利与亏损结合起来，以便于用户可以通过分析来获取有利于交易的市场交易习惯和潜在交易机会。</div>
        </div>
        <div class="report-tip-text">
            <div>
                <b>数据更新：</b></div>
            <div>
                盘中数据动态更新，更新间隔5分钟，由于运算因素，实时成交数据整体延时约5-10分钟。</div>
        </div>
    </div>
</div>
@MvcHtmlString.Create(ViewBag.js)
<script type="text/javascript">
    GroupBar();
    function showDetail() {
        if ($('#ad').attr('class') == "detailsold") {
            $("#ad").removeClass("detailsold").addClass("detailsoldclick");
        } else {
            $("#ad").removeClass("detailsoldclick").addClass("detailsold");
        }
        $(".detailslist").toggle();
    }

    function fff() {
        $(".basehiddendiv").toggle();
        $(".aew").toggle();
        //    $(".detailsold").removeClass("detailsold").addClass("detailsoldclick");
    }

    function fsa(c) {
        var offset = $("#fs").offset();
        if (c == 1) {
            $("#myshowdiv").css("left", offset.left + 5);
            $("#myshowdiv").css("top", offset.top - 175);
        } else {
            $("#myshowdiv").css("left", offset.left - 545);
            $("#myshowdiv").css("top", offset.top - 175);
        }
        $("#myshowdiv").toggle();

    }
    function fee(id) {
        $(".div" + id).toggle();
        $(".table" + id).toggle();
    }
</script>
